
package com.programmingeyeclient.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.programmingeyeclient.user.entity.Teacher;
import com.programmingeyeclient.user.vo.TeacherVO;
import org.apache.ibatis.annotations.Mapper;


import java.util.List;

/**
 * 讲师 Mapper 接口
 */
@Mapper
public interface TeacherMapper extends BaseMapper<Teacher> {

	/**
	 * 自定义分页
	 *
	 * @param page
	 * @param teacher
	 * @return
	 */
	List<TeacherVO> selectTeacherPage(IPage page, TeacherVO teacher);

	/**
	 * 查询讲师总人数
	 * @return
	 */
	int getTeacherCount();

	//查询讲师
	List<Teacher> selectTeacherList();

}
